<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>修改大区系数</title>
	<link rel="stylesheet" href="css/reset.css">
	<link rel="stylesheet" href="css/product.css">
	<link rel="stylesheet" href="css/select-big.css">
</head>
<body style="background:#fff;">
	<div class="main-content-box">
		<div class="content-list">
			<ul class="info-area" style="border-bottom:none;">
				<li>
					<span class="info-red"><font color="red">*</font>大区：</span>
					<select class="multiselect" id="single">
						<option value="1">中南</option>
						<option value="2">北京</option>
						<option value="3">上海</option>
						<option value="4">广州</option>
						<option value="5">浙江</option>
						<option value="6">西北</option>
						<option value="6">西南</option>
					</select>
				</li>
				<li>
					<span class="info-red"><font color="red">*</font>系数：</span>
					<input type="text" placeholder="">
				</li>
				<li>
					<span class="info-red"><font color="red">*</font>有效开始时间：</span>
					<input id="data-time" class="laydate-icon" type="text">
				</li>
				<li>
					<span class="info-red"><font color="red">*</font>有效结束时间：</span>
					<input id="data-time1" class="laydate-icon" type="text">
				</li>
				<li>
					<div class="line-bottom">
						<button class="save-btn mgauto">保存</button>
					</div>
				</li>
			</ul>
		</div>
	</div>
	<script src="js/jquery-1.12.0.min.js"></script>
	<script src="js/select.jquery.js"></script>
	<script src="lib/rili/laydate.dev.js"></script>
    <script type="text/javascript">
        $(document).ready(function (){//新增
			var eventStart = {  
			        elem: '#data-time',  
			        format: 'YYYY/MM/DD',  
			        min: laydate.now(), 
			        max: '2099-06-16',  
			        istime: true,  
			        istoday: true,  
			        start: laydate.now(0,"YYYY-MM-DD"),  
			        choose: function(enddatas){  
			        	/* activityStart.max = enddatas; //结束日选好后，重置开始日的最大日期  
			        	activity_end_time=enddatas; */
			        }  
			    };
			var eventEnd = {  
			        elem: '#data-time1',  
			        format: 'YYYY/MM/DD',  
			        min: laydate.now(), 
			        max: '2099-06-16',  
			        istime: true,  
			        istoday: true,  
			        start: laydate.now(0,"YYYY-MM-DD"),  
			        choose: function(enddatas){  
			        	/* activityStart.max = enddatas; //结束日选好后，重置开始日的最大日期  
			        	activity_end_time=enddatas; */
			        }  
			    };
			laydate(eventStart);
			laydate(eventEnd);
		 });
        $('.multiselect').multiselect({setMaxOptionNum:4,selectedHtmlValue:''});
		$('#single').multiselect({multiple:false,selectedHtmlValue:'全部',setWidth: 338+'px'});

		$('select').change(function(){
				// alert(1);
		});
		$('select').on('change',function(){
			console.log($(this).val())
			console.log($(this).find("option:selected").text())
		});
    </script>
</body>
</html>